package foodmaterial.action.valid;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.util.List;


public class ObjectNullValidator implements ConstraintValidator<ObjectNullValid, Object> {
    @Override
    public void initialize(ObjectNullValid constraintAnnotation) {

    }

    @Override
    public boolean isValid(Object value, ConstraintValidatorContext constraintValidatorContext) {
        if (value == null) return false ;
        return true;
    }

}
